﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace RN.ERP.Entity.ZBDLRY
{
    [Table("T_Sys_Users")]
    public class T_Sys_Users_Zbdl
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int32 ID { get; set; }
        public Int32? ClassID { get; set; }
        public Int32? TreeID { get; set; }
        public Guid UserGuid { get; set; }
        public Int32? DogID { get; set; }
        public String UserName { get; set; }
        public Int32? bGrade { get; set; }
        public String Name { get; set; }
        public String Pwd { get; set; }
        public String Password { get; set; }
        public Int32? RoleID { get; set; }
        public String RoleName { get; set; }
        public Byte? bStatus { get; set; }
        public String AreaCode { get; set; }
        public String AreaName { get; set; }
        public Int32? CorpID { get; set; }
        public Int32? DeptID { get; set; }
        public String DeptName { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? RegisterDate { get; set; }
        [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:yyyy-MM-dd}")]
        public DateTime? LastActiveDate { get; set; }
        public Byte? bValue { get; set; }
        public Byte? bLocked { get; set; }
        public Byte bDeleted { get; set; }
        public Byte bSuperAdmin { get; set; }
        public Int32? CurrentTemplateType { get; set; }
        public String Role { get; set; }
        public String PermiModel { get; set; }
        public String PermiScope { get; set; }
        public String DeptCode { get; set; }
        public String ZZJGDM { get; set; }
        public Int16? IsBuy { get; set; }
        public Int32? OldRoleID { get; set; }
        public String ReportAreaCode { get; set; }
        public Int32? sortIndex { get; set; }
        public Int32? KindID { get; set; }
        public Int32? ClanID { get; set; }
        public Guid? loginGuid { get; set; }
        public String userTel { get; set; }
        /// <summary>
        /// 判断是不是市政企业，0表示否，1表示是
        /// </summary>
        public Int32? isSZ { get; set; }
        public Int32? oldId { get; set; }
        public String dogcode { get; set; }
        public Int32? menuIDKind { get; set; }
        public Int32? LoginCount { get; set; }
        public Int32? ClickCount { get; set; }
        public String RoleRightID { get; set; }
        /// <summary>
        /// 1不检测加密狗 0按Config配置
        /// </summary>
        public Int32? CheckDog { get; set; }
        public String ScopeAreaCode { get; set; }
        public Boolean CALaunched { get; set; }
        public String MsgRoles { get; set; }

        public string AreaCodeScope { get; set; }
    }
}
